//
//  XLModifyPSInteractor.m
//  industry
//
//  Created by xl on 2020/12/10.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLModifyPSInteractor.h"
#import "XLModifyPSInteractorProtocol.h"
#import "XLModifyPSVC.h"
#import "XLAccountSafeVC.h"

@interface XLModifyPSInteractor ()<XLModifyPSInteractorProtocol>

@end
@implementation XLModifyPSInteractor

- (void)dealloc {
    XLLog(@"XLModifyPSInteractor dealloc");
}

#pragma mark - XLModifyPSViewProtocol
- (void)gotoModifyVC:(NSArray *)companyArr {
    XLModifyPSVC *vc = [[XLModifyPSVC alloc] init];
    vc.fromType = XLModifyPSVCFromTypeFinish;
    vc.companyArr = companyArr;
    [self.baseController.navigationController pushViewController:vc animated:YES];
}

- (void)gotBackLastVC {
    for (XLBaseViewController *vc in self.baseController.navigationController.viewControllers) {
        if ([vc isKindOfClass:[XLAccountSafeVC class]]) {
            [self.baseController.navigationController popToViewController:vc animated:YES];
            return;
        }
    }
}

@end
